package render

import (
	"github.com/go-chi/render"
	"originforce.club/bilin-mock/internal/dao"
)


func EntityToRender[T db.DbEntity | db.DbEntityPtr](i T) render.Renderer {
	// Pre-processing before a response is marshalled and sent across the wire
	return &MockResponse{HTTPStatusCode: 200, StatusText: "ok", Data: i}
}

func EntityListToRender[T db.DbEntity | db.DbEntityPtr](i []T) render.Renderer {
	// Pre-processing before a response is marshalled and sent across the wire
	return &MockResponse{HTTPStatusCode: 200, StatusText: "ok", Data: i}
}